<?php include 'application/views/header.php' ?>
<?php // echo '<pre>'; print_r($Product); die; ?>
<h4 class="page-title">Khách hàng</h4>
<form accept="<?php echo base_url() ?>video/add" method="post" id="frmvideoAdd">
    <table width="100%" class="form video-edit">
       <tr>
            <th>Tên video</th>
            <td><input type="text" value="<?php echo isset($Video['VideoName']) ? $Video['VideoName'] : ''  ?>" name="VideoName" id="VideoName"/></td>
       </tr>
       <tr>
            <th>Embed video</th>
            <td><input type="text" value="<?php echo isset($Video['Embed']) ? $Video['Embed'] : '' ?>" name="Embed" id="Embed"/></td>
       </tr>
        <tr>
            <th>Ẩn hiện khách hàng</th>
            <td><input <?php echo (isset($Video['Visible']) && $Video['Visible'] == 1 ? 'checked="checked"' : '') ?>" type="checkbox" value="1" name="Visible" id="Visible"  /></td>
       </tr>
    </table>
    <div class="clr button-set">
        <input type="submit" value="Lưu nội dung" id="btnSave" />
        <input type="reset" value="Hủy nội dung vừa nhập" id="btnReset" />
        <input type="button" value="Về danh sách video" id="btnBack" />
    </div>
</form>
<?php include 'application/views/footer.php' ?>
<script>
$('#btnBack').click(function(){
    window.location.href = '<?php echo base_url() ?>video.html'; 
});
</script>